package com.medical.mapper;

import com.medical.pojo.MessageCenter;
import com.medical.vo.Rmed;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageCenterMapper {
    List<MessageCenter> findAll(MessageCenter messageCenter);
    @Select("select * from message_center where id = #{id}")
    MessageCenter findById(Integer id);

    void addMessage(MessageCenter messageCenter);

    @Delete("delete from message_center where id = #{id}")
    void deleteOne(Integer id);
}
